<template>
    <div class=''>
        <van-nav-bar title="商品详情页" left-text="返回" left-arrow @click-left="onClickLeft" />
        <img :src="$route.query.item.pic" alt="">
        <p>{{$route.query.item.title}}</p>
        <p>
            <span :style="{color:'red',marginRight:'20px'}"><b>￥：{{$route.query.item.price}}</b></span>
            <s><small>￥：{{$route.query.item.old_price}}</small></s>
        </p>
    </div>
</template>

<script>
    export default {
        data() {
            return {};
        },
        mounted() {},
        methods: {
            onClickLeft() {
                this.$router.go(-1)
            }
        },
    };
</script>

<style lang='scss'>
    img{
        width: 80%;
    }
</style>